package com.wm.blog.es.annotation;

/**
 * @Author: weiming
 * @Date: 2021/5/21 13:43
 * @Description:
 */





import com.wm.blog.center.common.enums.es.AnalyzerType;
import com.wm.blog.center.common.enums.es.FieldType;

import java.lang.annotation.*;

/**
 * 作用在字段上，用于定义类型，映射关系
 * @author ls
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
@Inherited
public @interface Field {

    FieldType type() default FieldType.TEXT;

    /**
     * 指定分词器
     *
     * @return
     */
    AnalyzerType analyzer() default AnalyzerType.STANDARD;
}



